<form id="form-line-{{ index }}" action="/device/{{ device_id }}/line/{{ index }}/" method="post">
 {{ line_form.device.as_hidden }}
 {{ line_form.index.as_hidden }}
 <div>
  <div class="form-label">{{ line_form.exten.label_tag }}:</div>
  <div class="form-input">{{ line_form.exten }}</div>
 </div>
 <div class="form-error">{{ line_form.exten.errors }}</div>
 <div>
  <div class="form-label">{{ line_form.label.label_tag }}:</div>
  <div class="form-input">{{ line_form.label }}</div>
 </div>
 <div class="form-error">{{ line_form.label.errors }}</div>
 <div>
  <div class="form-label">{{ line_form.caller_id.label_tag }}:</div>
  <div class="form-input">{{ line_form.caller_id }}</div>
 </div>
 <div class="form-error">{{ line_form.caller_id.errors }}</div>
 <div class="form-submit"><input type="submit" value="Save" /></div>
</form>
<script>
$(function() {
/*  $("form").submit( function(event) {
    event.preventDefault();
  }); */
});
</script>
